<template>
  <h3>当前Num的值:{{ num }}</h3>
  <button @click="num++">Num ++ </button>
  <hr>
  <h2>当前鼠标点击的坐标：X:{{ point.x }}, Y:{{ point.y }}</h2>
</template>

<script>
import { ref, } from 'vue'
import usePoint from '../hooks/usePoint.js'

export default {
  name: 'School-Comp',
  setup() {
    // 数据
    let num = ref(0);

    let point = usePoint()

    return { num, point }
  },
}
</script>

<style></style>
